// 3 销售管理 2
export default {
  path: '/salemanage',
  name: 'salemanage',
  icon: 'shop',
  authority: ['cs:antd:sales'],
  routes: [
    {
      path: '/salemanage/customer',
      name: 'customer',
      authority: ['cs:sales:cust'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/salemanage/customer',
          redirect: '/salemanage/customer/index',
        },
        {
          path: '/salemanage/customer/index',
          component: './SaleManage/Customer/Index',
        },
        {
          path: '/salemanage/customer/add',
          name: 'add',
          component: './SaleManage/Customer/Add',
        },
        {
          path: '/salemanage/customer/detail',
          name: 'detail',
          component: './SaleManage/Customer/Detail',
        },
        {
          path: '/salemanage/customer/update',
          name: 'update',
          component: './SaleManage/Customer/Update',
        },
        {
          path: '/salemanage/customer/uploadinfo',
          name: 'uploadinfo',
          component: './SaleManage/Customer/Update/UploadInfo',
        },
        {
          path: '/salemanage/customer/finish',
          name: 'finish',
          component: './SaleManage/Customer/Update/Finish',
        },
        {
          path: '/salemanage/customer/contactupload',
          name: 'contactupload',
          component: './SaleManage/Customer/Update/ContactUpload',
        },
        {
          path: '/salemanage/customer/contactfinish',
          name: 'contactfinish',
          component: './SaleManage/Customer/Update/ContactFinish',
        },
        {
          path: '/salemanage/customer/batchadd',
          name: 'batchadd',
          component: './SaleManage/Customer/BatchAdd',
        },
      ],
    },
    {
      path: '/salemanage/busicont',
      name: 'busicont',
      authority: ['cs:sales:cont'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/salemanage/busicont',
          redirect: '/salemanage/busicont/index',
        },
        {
          path: '/salemanage/busicont/index',
          component: './SaleManage/BusiCont/Index',
        },
        {
          path: '/salemanage/busicont/renewal',
          name: 'renewal',
          component: './SaleManage/BusiCont/Renewal',
        },
        {
          path: '/salemanage/busicont/add',
          name: 'add',
          component: './SaleManage/BusiCont/Add',
        },
        {
          path: '/salemanage/busicont/update',
          name: 'update',
          component: './SaleManage/BusiCont/Update',
        },
        {
          path: '/salemanage/busicont/detail',
          name: 'detail',
          component: './SaleManage/BusiCont/Detail',
        },
        {
          path: '/salemanage/busicont/history',
          name: 'history',
          component: './SaleManage/BusiCont/History',
        },
        {
          path: '/salemanage/busicont/historydetail',
          name: 'historydetail',
          component: './SaleManage/BusiCont/HistoryDetail',
        },
        {
          path: '/salemanage/busicont/batchAdd',
          name: 'batchadd',
          component: './SaleManage/BusiCont/BatchAdd',
        },
        {
          path: '/salemanage/busicont/supplyadd',
          name: 'supplyadd',
          component: './SaleManage/BusiCont/SupplyAdd',
        },
        {
          path: '/salemanage/busicont/supplyupdate',
          name: 'supplyupdate',
          component: './SaleManage/BusiCont/SupplyUpdate',
        },
        {
          path: '/salemanage/busicont/supplycondetail',
          name: 'supplycondetail',
          component: './SaleManage/BusiCont/SupplyDetail',
        },
        {
          path: '/salemanage/busicont/supplyhistory',
          name: 'supplyhistory',
          component: './SaleManage/BusiCont/SupplyHistory',
        },
        {
          path: '/salemanage/busicont/supplyhistorydetail',
          name: 'supplyhistorydetail',
          component: './SaleManage/BusiCont/SupplyHistoryDetail',
        },
        {
          path: '/salemanage/busicont/supplybatchadd',
          name: 'supplybatchadd',
          component: './SaleManage/BusiCont/SupplyBatchAdd',
        },
      ],
    },
    {
      path: '/salemanage/quotation',
      name: 'quotation',
      authority: ['cs:sales:quo'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/salemanage/quotation',
          redirect: '/salemanage/quotation/index',
        },
        {
          path: '/salemanage/quotation/index',
          component: './SaleManage/Quotation/Index',
        },
        {
          path: '/salemanage/quotation/add',
          name: 'add',
          component: './SaleManage/Quotation/Add',
        },
        {
          path: '/salemanage/quotation/setprice',
          name: 'setprice',
          component: './SaleManage/Quotation/SetPrice',
        },
        {
          path: '/salemanage/quotation/finished',
          name: 'finished',
          component: './SaleManage/Quotation/Finish',
        },
        {
          path: '/salemanage/quotation/detail',
          name: 'detail',
          component: './SaleManage/Quotation/Detail',
        },
        {
          path: '/salemanage/quotation/update',
          name: 'update',
          component: './SaleManage/Quotation/Update',
        },
        {
          path: '/salemanage/quotation/updatesetprice',
          name: 'update',
          component: './SaleManage/Quotation/UpdateSetPrice',
        },
        {
          path: '/salemanage/quotation/updatefinished',
          name: 'updatefinished',
          component: './SaleManage/Quotation/UpdateFinish',
        },
        {
          path: '/salemanage/quotation/personnelinfo',
          name: 'update',
          component: './SaleManage/Quotation/PersonnelInfo',
        },
        {
          path: '/salemanage/quotation/edithistoryrecord',
          name: 'edithistoryrecord',
          component: './SaleManage/Quotation/EditHistoryRecord',
        },
        {
          path: '/salemanage/quotation/batchadd',
          name: 'batchadd',
          component: './SaleManage/Quotation/BatchAdd',
        },
      ],
    },
    {
      path: '/salemanage/supplier',
      name: 'supplier',
      authority: ['cs:sales:supp'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/salemanage/supplier',
          redirect: '/salemanage/supplier/index',
        },
        {
          path: '/salemanage/supplier/index',
          component: './SaleManage/Supplier/Index',
        },
        {
          path: '/salemanage/supplier/add',
          name: 'add',
          component: './SaleManage/Supplier/Add',
        },
        {
          path: '/salemanage/supplier/update',
          name: 'update',
          component: './SaleManage/Supplier/Update',
        },
        {
          path: '/salemanage/supplier/detail',
          name: 'detail',
          component: './SaleManage/Supplier/Detail',
        },
        {
          path: '/salemanage/supplier/uploadinfo',
          name: 'uploadinfo',
          component: './SaleManage/Supplier/update/Uploadinfo',
        },
        {
          path: '/salemanage/supplier/finish',
          name: 'finish',
          component: './SaleManage/Supplier/update/Finish',
        },
        {
          path: '/salemanage/supplier/contactupload',
          name: 'contactupload',
          component: './SaleManage/Supplier/update/Contactupload',
        },
        {
          path: '/salemanage/supplier/contactfinish',
          name: 'contactfinish',
          component: './SaleManage/Supplier/update/Contactfinish',
        },
      ],
    },
  ],
};
